* Figure 2
use "./data/publications.dta", clear
createvarspub
bys article_id: keep if _n==1
collapse (count) total=article_id (sum) tulisboa tuminho tunova tuporto, by(year)
keep if year>1999
label var tuporto "U Porto"
label var tunova "U Nova"
label var tulisboa "U Lisboa"
label var tuminho "U Minho"
tsset year
twoway ///
(tsline tulisboa, lwidth(medium) lpattern(solid)) ///
(tsline tuminho, lwidth(medium) lpattern(dash)) ///
(tsline tunova, lwidth(medium) lpattern(dot)) ///
(tsline tuporto, lwidth(medium) lpattern(dash_dot_dot)), ///
ytitle(Number of articles) graphregion(fcolor(white)) ///
legend(region(color(white))) scheme(sj)
graph export ./figures/fig2.pdf, replace
